package top.eggcode.system.modules.log.service;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.eggcode.common.base.BaseMarkServiceImpl;
import top.eggcode.common.model.ListPage;
import top.eggcode.system.modules.log.model.ActionLogEntity;
import top.eggcode.system.modules.log.model.ActionLogQuery;
import top.eggcode.system.modules.log.store.ActionLogRepository;
import top.eggcode.system.modules.log.store.ActionLogStore;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/25 15:10
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Slf4j
@Transactional(rollbackFor = Exception.class)
@AllArgsConstructor
@Service
public class ActionLogServiceImpl extends BaseMarkServiceImpl<ActionLogEntity> {

    private final ActionLogRepository selfRepository;

    private final ActionLogStore selfAccessor;

    public ListPage<ActionLogEntity> page(ActionLogQuery query) {
        return selfAccessor.page(query);
    }
}
